﻿using System;
using System.Collections.Generic;

namespace PathFinding
{
    public class Cell : IEquatable<Cell>
    {
        public bool isWalkable;
        public int x;
        public int y;
        public int gCost;//起点到当前节点代价
        public int hCost;//不考虑可通行区域 当前节点到终点代价
        //public int fCost;//G+H
        public Cell parent;

        public bool Equals(Cell other)
        {
            return other.x == this.x && other.y == this.y;
        }
    }

}
